package controller.design_mode_10_strategy;

/**
 * ***********************************************************
 *
 * @类名 : controller.design_mode_10_strategy.类名
 * @DESCRIPTION : 这家伙太懒啥都没写
 * @AUTHOR :  一个风情万种的男子
 * @DATE : 2016/4/21
 * ***********************************************************
 */
public class Client {

    public static void main(String[] args) {
        //声明一个具体的策略
        Strategy strategy1 = new ConStrategy1();
        Strategy strategy2 = new ConStrategy2();

        //声明封装对象
        Context context = new Context(strategy1);
        context.doSomething();

        Context context2 = new Context(strategy2);
        context2.doSomething();
    }
}
